#ifndef INPUTFOLDERDIALOG_H
#define INPUTFOLDERDIALOG_H

#include <QtGui/QDialog>
#include <QSettings>
#include <QFileDialog>
#include <QMessageBox>

#include "desc.h"
#include "listwindow.h"

namespace Ui {
    class inputFolderDialog;
}

class inputFolderDialog : public QDialog
{
    Q_OBJECT
public:
    inputFolderDialog(QWidget *parent = 0);
    ~inputFolderDialog();

    void run_form();
    ftpInfo* getFtpInfo();

private:
    Ui::inputFolderDialog *m_ui;

    QList<ftpInfo*> ftpInfoList;
    int operation; // 1 - single FTP, 2 - multi FTP

private slots:
    void on_comboBox_currentIndexChanged(int index);
    void on_comboBox_editTextChanged(QString );
    void on_okButton_clicked();
    void on_closeButton_clicked();

    void readSettings();
    void writeSettings();

    bool checkInputPath();
    void addPath( const QString& source );
    void changeFtpHost();
};

#endif // INPUTFOLDERDIALOG_H
